package com.ganbo.stock.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 操作码
 *
 * @Author: ganbo
 * @Date: 2019/9/27 18:19
 */

@AllArgsConstructor
@Getter
public enum ExceptionCodes {

    //===================系统相关================
    SUCCESS("200", "操作成功"),
    FAIL("1002", "操作失败"),
    NOHANDLER("404", "访问路径不存在"),
    BUILD_SING_FAIL("1001", "构建请求行方签名失败"),
    SYSTEM_EXCEPTION("1003", "系统异常"),
    PARAMETER_ERROR("1004", "参数校验异常"),


    //===================用户相关============
    ALREADY_REGISTER("2001", "用户已注册,请勿重复注册"),
    USER_NOTEXIST("2002", "用户不存在"),
    BANK_REGISTER_FAIL("2003", "存管注册失败"),
    SMS_BIZTYPE_ERROR("2004", "验证码业务类型错误"),
    SMS_SEND_ERROR("2005", "验证码发送错误"),
    SMS_VERIFICATIONCODE_ERROR("2006", "短信验证码错误"),
    BANK_UPDATE_FAIL("2007", "修改用户信息失败"),
    REMITTANCE_AUTHENTICATION_ERROR("2008", "打款认证失败"),
    ;


    private String code;
    private String desc;
}
